Repository navigation
feat(console): one Studio detail header composite (×, package, ‹ › with position, ⋯, primary) - #36924
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…th, so the e2e program stays build-free Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU 席位核对 — ACCEPT · repo:objectstack#3 · head 7a4b4a3 · 2026-11-24T09:36ZL1: ACCEPT Read
Checklist
Open question from the dev (Clause-② for new
|
|
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR Landing · 2026-11-24T09:37Z · ACCEPT 7127659414 at head 7a4b4a3
Open findings: nits only (L1 N1 changeset naming the private app-shell; N2 the document-wide Esc listener, for the wiring cards #36901/#36903/#36904/#36905 to watch with non-Radix overlays). N2 goes to the seat's report. State: ready + auto-merge (Tier S). On MERGED, #36892 closes by |
|
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR Landing correction to 7127687940 (the K row): the main commits ahead of base 151e812 DO touch |
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR
Fixes #36892
Part of #36890
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
StudioDetailHeader(ui/packages/app-shell/src/views/studio-detail/StudioDetailHeader.tsx): a thin composite overStudioItemHeader's slots. × (back to the list) inleading; the type and the source package as identity chips after the label and api name; the status as the header's status chip; inactions, ‹ › with "index / total", the page's primary button (a slot), and ⋯ (the page's own menu items, with the folded chips above them viaStudioItemHeaderFoldedItems). No switcher dropdown, no "open in app" (epic decision 7).sequence={{ names, current }}plusonOpenItem(name).detailSequence(names, current)(exported, pure) computes the 1-based index, total, previous and next; the ends do not wrap; a name the list does not hold has no position and both steps are off. The order itself comes later from the list card (decision 10: filter and sort in the detail address, by name without list context).confirmUnsavedLeaveinchrome/unsavedEdits.ts; browser Back is not intercepted (decision 12). Esc is ignored when a menu or dialog already handled it (Radix marks itdefaultPrevented), when it is aimed at a text field, or with a modifier;closeOnEscape={false}turns it off.StudioItemHeader's rules unchanged: the identity chips (api name, type, package) fold into ⋯ first; the position text carriesdata-studio-fold-label/STUDIO_FOLD_LABELso it leaves the row at the second stage while ‹ › stay; the title is cut last. The composite does no measuring of its own.engine.studio.detailHeader.*(close, previous, next, position, notInList, package, more) in thestudionamespace, en + zh.StudioItemHeader.tsx,StudioDesignSurface.tsxandunsavedEdits.tsare read, not edited. Placement: a new sibling folderviews/studio-detail/rather thanstudio-design/, so this PR adds nothing under thestudio-design/**surface another open card holds.Tests
StudioDetailHeader.test.tsx(24 tests): index math (middle, first, last, lone, outside the list, empty list); first/last disabled; ‹ › open the neighbours; the leave guard on × and › (Cancel keeps the page, OK leaves, nothing unsaved means no prompt); Esc triggers × (through the guard), not from a text field, not while ⋯ is open (that Esc closes the menu, the next one closes the page), not withcloseOnEscapeoff or a modifier; ×, ‹, › are native buttons in tab order; the narrow-row fold at stubbed widths (wide 900 px nothing folds; 560 px chips fold into ⋯; 380 px the position label folds too; it follows resizes both ways; without menu items the header draws its own ⋯ only while folded).ui/e2e/studio-detail-header-width.spec.ts: the real component and real Tailwind in Chromium at a 1024 px row (everything whole, nothing folded, every box inside the row) and a 360 px row (chips folded into ⋯, position text out, both fold stages taken, ×, ‹, ›, ⋯ inside the row, no overflow), plus keyboard: Tab from ‹ reaches ›, Enter steps, Esc triggers ×.Readings (head 7a4b4a3)
vitest run packages/app-shell/src/views/studio-detail/ packages/i18n/src/namespaces/studio/ packages/i18n/src/__tests__/: Test Files 110 passed (110), Tests 2038 passed, 13 skipped (lock VERDICT command-exit 0).{"title":{"width":205.88,"clipped":false},"inRow":{"type":true,"package":true,"apiName":true},"positionShown":true,"fold":null,"childrenInsideRow":true,"controlsInsideRow":true,"documentOverflowX":0}; 360 px{"title":{"width":43.92,"clipped":true},"inRow":{"type":false,"package":false,"apiName":false},"positionShown":false,"fold":"labels","childrenInsideRow":true,"controlsInsideRow":true,"documentOverflowX":0}.pnpm --filter @object-ui/app-shell run type-check: exit 0 (both programs, the test one included).pnpm --dir ui type-check:e2e: exit 0.uii18n:check:i18n-keysexit 0,check:i18n-driftexit 0,check:i18n-dead-keysexit 0 (nodetailHeaderkey reported).--no-inline-config) on the new files: 0 errors, 1 warning (react-refresh/only-export-componentsfor the exported puredetailSequence, the same shapeStudioItemHeader.tsxalready has).dispatch-gates.mjs --commands, 38): all exit 0 on the final tree exceptpnpm --dir ui exec vitest run scripts/, which failed once one2e-type-check.test.ts"imports no workspace package" (the test page imported@object-ui/components); fixed in 7a4b4a3 by importing it by source path, and that file re-run green (15/15).--ranreconciliation: 38 of 38 accounted.Acceptance notes
e2e/studio-item-header-title-width.spec.ts's bundling.Clause-②: noas the claim says; a sibling i18n-only changeset declaredyes (widening)for added keys, so the seat may want to confirm which reading applies to new keys in thestudionamespace.StudioItemHeader's existing last step, not new behaviour.Verification
Files to read first:
StudioDetailHeader.tsx(the Esc listener and the ⋯ /foldMenuchoice are the risk hunks), thenStudioDetailHeader.test.tsx's narrow-width block.Two-minute check:
pnpm --filter @object-ui/app-shell exec vitest run --root ../.. packages/app-shell/src/views/studio-detail/and expect 24 passed.Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
🤖 Generated with Claude Code